<h3>Account Information</h3>

<table >
	<tr>
		<td>First name:</td>
		<c:if test="${sessionScope.account!=null}">
		<td><input name="account.firstName" value="${sessionScope.account.firstName}"/></td>
		</c:if>
		<c:if test="${sessionScope.account==null}">
			<td><input name="account.firstName" /></td>
		</c:if>
	</tr>
	<tr>
		<td>Last name:</td>
		<c:if test="${sessionScope.account!=null}">
			<td><input name="account.lastName" value="${sessionScope.account.lastName}"/></td>
		</c:if>
		<c:if test="${sessionScope.account==null}">
			<td><input name="account.lastName" /></td>
		</c:if>
	</tr>
	<tr>
		<td>Email:</td>
		<c:if test="${sessionScope.account!=null}">
			<td><input size="40" name="account.email"  value="${sessionScope.account.email}"/></td>
		</c:if>
		<c:if test="${sessionScope.account==null}">
			<td><input size="40" name="account.email" /></td>
		</c:if>
	</tr>
	<tr>
		<td>Phone:</td>
		<c:if test="${sessionScope.account!=null}">
			<td><input name="account.phone" value="${sessionScope.account.phone}"/></td>
		</c:if>
		<c:if test="${sessionScope.account==null}">
			<td><input name="account.phone" /></td>
		</c:if>
	</tr>
	<tr>
		<td>Address 1:</td>
<c:if test="${sessionScope.account!=null}">
		<td><input size="40" name="account.address1" value="${sessionScope.account.address1}"/></td>
</c:if>
<c:if test="${sessionScope.account==null}">
		<td><input size="40" name="account.address1" /></td>
</c:if>
	</tr>
	<tr>
		<td>Address 2:</td>
<c:if test="${sessionScope.account!=null}">
		<td><input size="40" name="account.address2" value="${sessionScope.account.address2}"/></td>
</c:if>
<c:if test="${sessionScope.account==null}">
	<td><input size="40" name="account.address2" /></td>
</c:if>
	</tr>
	<tr>
		<td>City:</td>
<c:if test="${sessionScope.account!=null}">
		<td><input name="account.city"  value="${sessionScope.account.state}"/></td>
</c:if>
<c:if test="${sessionScope.account==null}">
		<td><input name="account.city" /></td>
</c:if>
	</tr>
	<tr>
		<td>State:</td>
<c:if test="${sessionScope.account!=null}">
		<td><input size="4" name="account.state"  value="${sessionScope.account.state}"/></td>
</c:if>
<c:if test="${sessionScope.account==null}">
		<td><input size="4" name="account.state" /></td>
</c:if>
	</tr>
	<tr>
		<td>Zip:</td>
<c:if test="${sessionScope.account!=null}">
		<td><input size="10" name="account.zip" value="${sessionScope.account.zip}"/></td>
</c:if>
<c:if test="${sessionScope.account==null}">
	<td><input size="10" name="account.zip" /></td>
</c:if>
	</tr>
	<tr>
		<td>Country:</td>
<c:if test="${sessionScope.account!=null}">
		<td><input size="15" name="account.country" value="${sessionScope.account.country}"/></td>
</c:if>
<c:if test="${sessionScope.account==null}">
	<td><input size="15" name="account.country" /></td>
</c:if>
	</tr>
</table>

<h3>Profile Information</h3>

<table>
	<tr>
		<td>Language Preference:</td>
		<td>
			<c:if test="${sessionScope.account!=null}">
				<select name="account.languagePreference">
					<option value="chinese" <c:if test="${sessionScope.account.languagePreference=='chinese'}">selected</c:if>>Chinese</option>
					<option value="english" <c:if test="${sessionScope.account.languagePreference=='english'}">selected</c:if>>English</option>
					<option value="japanese" <c:if test="${sessionScope.account.languagePreference=='japanese'}">selected</c:if>>Japanese</option>
				</select>

			</c:if>
			<c:if test="${sessionScope.account==null}">
				<select name="account.languagePreference">
					<option value="chinese" selected="selected">Chinese</option>
					<option value="english">English</option>
					<option value="japanese">Japanese</option>
				</select>
			</c:if>

		</td>
	</tr>
	<tr>
		<td>Favourite Category:</td>
		<td>
			<c:if test="${sessionScope.account==null}">
			<select name="account.favouriteCategoryId">
				<option value="BIRDS" selected="selected">Birds</option>
				<option value="CATS">Cats</option>
				<option value="DOGS">Dogs</option>
				<option value="FISH">Fish</option>
				<option value="REPTILES">Reptiles</option>
			</select>
			</c:if>
			<c:if test="${sessionScope.account!=null}">
				<select name="account.favouriteCategoryId">
					<option value="BIRDS" <c:if test="${sessionScope.account.favouriteCategoryId=='BIRDS'}">selected</c:if>>Birds</option>
					<option value="CATS" <c:if test="${sessionScope.account.favouriteCategoryId=='CATS'}">selected</c:if>>Cats</option>
					<option value="DOGS" <c:if test="${sessionScope.account.favouriteCategoryId=='DOGS'}">selected</c:if>>Dogs</option>
					<option value="FISH" <c:if test="${sessionScope.account.favouriteCategoryId=='FISH'}">selected</c:if>>Fish</option>
					<option value="REPTILES" <c:if test="${sessionScope.account.favouriteCategoryId=='REPTILES'}">selected</c:if>>Reptiles</option>
				</select>
			</c:if>
		</td>
	</tr>
	<tr>
		<td>Enable MyList</td>
		<td><input type="checkbox" name="account.listOption" <c:if test="${sessionScope.account.listOption==true}">checked</c:if>/></td>
	</tr>
	<tr>
		<td>Enable MyBanner</td>
		<td><input type="checkbox" name="account.bannerOption" <c:if test="${sessionScope.account.bannerOption==true}">checked</c:if>/></td>
	</tr>

</table>
